Skip to content

feat(RNPSW): add resume transaction functionality and validation updates#240

Open
benkwash wants to merge 1 commit into
just1and0:mainfrom
benkwash:feat-resume-transaction
Open

feat(RNPSW): add resume transaction functionality and validation updates#240
benkwash wants to merge 1 commit into
just1and0:mainfrom
benkwash:feat-resume-transaction

Conversation

@benkwash
Copy link
Copy Markdown

Resume Transaction Feature

Description

This pull request adds the resumeTransaction functionality to the package. The resume transaction feature allows developers to initiate transactions on their server and seamlessly complete them within the React Native app using an access code from Paystack.

Key additions include:

  • Code example demonstrating how to use resumeTransaction()
  • Documentation explaining the resume transaction flow and its benefits
  • API reference documentation for the popup.resumeTransaction() method
  • Updated features list to highlight the new capability

API Reference Added

popup.resumeTransaction() Documentation

A new method documented with the following parameters:

  • accessCode (required): Access code from Paystack for resuming a transaction
  • onSuccess (required): Callback on successful payment
  • onCancel (required): Callback on cancellation
  • onLoad (optional): Callback when transaction view loads
  • onError (optional): Callback on WebView or script error

Code Example Added

Complete React Native component example showing:

popup.resumeTransaction({
  accessCode: 'ACCESS_CODE_FROM_PAYSTACK',
  onSuccess: (res) => console.log('Payment resumed successfully:', res),
  onCancel: () => console.log('User cancelled'),
  onLoad: (res) => console.log('WebView Loaded:', res),
  onError: (err) => console.log('WebView Error:', err)
});

Type of Changes

  • ✨ New Feature
  • 📝 Documentation

Testing

  • README updated with complete documentation
  • Code examples are syntactically correct
  • API reference is consistent with implementation
  • All callbacks documented and explained

@benkwash
Copy link
Copy Markdown
Author

@just1and0

@just1and0 just1and0 self-requested a review May 28, 2026 11:09
@just1and0
Copy link
Copy Markdown
Owner

@just1and0

Thanks for making this PR, please next time request me for a review, and i will get the notification.
I will review this right away.

Copy link
Copy Markdown
Owner

@just1and0 just1and0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benkwash, could you please update your branch with main? Currently, it's missing the GitHub actions file that allows me to run checks and tests on your code before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants